package com.atguigu.webflux.repositories;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
import com.atguigu.webflux.entity.Tutorial;

@Repository
public interface TutorialRepository extends R2dbcRepository<Tutorial, Long> {
    Flux<Tutorial> findByTitle(String title);
    Flux<Tutorial> findByPublished(boolean published);
}
